import axios from './http.js';

// 统一api相关接口

// 查询车辆信息 // 查询缴费账单 包括车牌号码、停车时长、应收费用、总费用等一系列缴费信息
function querylicense(data) {
  return axios({
    url: '/parking/hik/quickPreBill.do',
    method: 'GET',
    responseType: "json",
    params: data
  })
}

// 平台下单接口
function payservice(data) {
  return axios({
    url: '/parking/payservice/netPay.do', 
    method: 'GET',
    responseType: "json",
    data: data
  })
}

// 账单支付确认
function confirmpayment(data) {
  return axios({
    url: '/parking/hik/receipt.do',
    method: 'POST',
    responseType: "json",
    data: data
  })
}

// 支付结果查询
function querypaymentState(data) {
  return axios({
    url: '/parking/payservice/getNetpayRouteResult.do',
    method: 'POST',
    responseType: "json",
    data: data
  })
}
export{
  querylicense,
  payservice,
  confirmpayment,
  querypaymentState
}